﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FixedWidth.Tests
{
	public static class Helpers
	{
		public static string GetStringResource(this object anchor, string path)
		{
			var value = string.Empty;
			using (var stream = anchor.GetType().Assembly.GetManifestResourceStream(path))
			using (var reader = new System.IO.StreamReader(stream))
			{
				value = reader.ReadToEnd();
			}
			return value;
		}
	}
}
